﻿/**
 * tr over handler
 * @param {Object} node
 */
function tr_over(node) {
  //if (!$(node).hasClass('selectedTd')) {
  //  $(node).addClass("hoverTd");
  //}
  //tr_over_mobile(node);
  $(node).attr('bgcolor', '#F9F5E9');
  // $(node).find('td').css('background','#F9F5E9');
}

function tr_over_mobile(node) {
  //var memberid = $($(node).children()[1]).children().children().attr("memberid");
  //$("#Tips_" + memberid).addClass("currentTips");
}

/**
 *
 * @param {Object} node
 */
function tr_out(node) {
  //$(node).removeClass("hoverTd");
  //tr_out_mobile(node);
  $(node).attr('bgcolor', '');
}

function tr_out_mobile(node) {
  //var memberid = $($(node).children()[1]).children().children().attr("memberid");
  //$("#Tips_" + memberid).removeClass("currentTips");
}

/**
 *
 * @param {Object} node
 * @param {Object} type
 */
function btn_over(node, type) {
  $(node).removeClass();
  if (type == 7) {
    $(node).addClass("buttonPublic btn_browseHover");
  }
}

/**
 *
 * @param {Object} node
 * @param {Object} type
 */
function btn_out(node, type) {
  $(node).removeClass();
  if (type == 7) {
    $(node).addClass("buttonPublic btn_browse");
  }
}

/**
 *
 * @param {Object} node
 * @param {Object} type
 */
function btn_mousedown(node, type) {
  $(node).removeClass();

  if (type == 7) {
    $(node).addClass("buttonPublic btn_browseActive");
  }
}

/**
 *
 * @param {Object} node
 * @param {Object} type
 */
function btn_mouseup(node, type) {
  $(node).removeClass();

  if (type == 7) {
    $(node).addClass("buttonPublic btn_browseHover");
  }
}

/**
 *
 * @param {Object} node
 */
function input_focus(node) {
  $(node).addClass("textInputActive");
}

/**
 *
 * @param {Object} node
 */
function input_blur(node) {
  $(node).removeClass("textInputActive");
}

/**
 *
 * @param {Object} node
 */
function input_changed(node) {
  $(node).addClass("textInputUpdate");
}

